<?php
/**
 * Created by PhpStorm.
 * User: jack Wang
 * Date: 2021/8/24
 * Time: 15:49
 */

class Cate_model extends CI_Model
{
    public function __construct()
    {
        parent::__construct();
        $this->load->database();
    }

    public function findAll()
    {
        $query = $this->db->select()
            ->from('cate')->get();
        return $query->result_array();
    }
}